package com.yykj.tencent.im.client.message;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义消息元素
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TIMCustomMsgElement extends TIMMsgElement {
    @JsonProperty("MsgContent")
    private CustomMsgContent msgContent;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class CustomMsgContent {
        @JsonProperty("Data")
        private String data;

        @JsonProperty("Desc")
        private String desc;

        @JsonProperty("Ext")
        private String ext;

        @JsonProperty("Sound")
        private String sound;

    }
}
